<template>
  <div id="app">
    <h1>测试首页</h1>
    <el-button @click="goLogin">前往登录页面</el-button>
    <el-button @click="goOrder">前往订单页面</el-button>
    <el-button @click="goChat">前往聊天页面</el-button>
    <el-button @click="goLawyer">前往律师页面</el-button>
    <el-button @click="goUser">前往用户页面</el-button>
    <el-button @click="goAdmin">前往管理员页面</el-button>
    <el-button @click="goHome">前往首页</el-button>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {

  },
  methods: {
    goLogin() {
      window.location = "login.html"
    },
    goOrder() {
      window.location = "order.html"
    },
    goChat() {
      window.location = "http://localhost:8080/websocket/testname"
    },
    goLawyer() {
      window.location = "lawyer.html"
    },
    goUser() {
      window.location = "user.html"
    },
    goAdmin() {
      window.location = "admin.html"
    },
    goHome() {
      window.location = "home.html"
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
